package org.eweb4j.mvc.config.bean;

import java.util.ArrayList;
import java.util.List;

import org.eweb4j.util.xml.tag.XmlTag;
import org.eweb4j.util.xml.tag.XmlTagType;


public class ValidatorConfigBean {
	@XmlTag(type = XmlTagType.attriType)
	private String name;
	@XmlTag(type = XmlTagType.attriType)
	private String clazz;
	@XmlTag(type = XmlTagType.listClassType)
	private List<FieldConfigBean> field = new ArrayList<FieldConfigBean>();
//	@XmlTag(type = XmlTagType.attriType, value = "org.eweb4j.mvc.config.bean.ValidatorConfigBean")
//	private String xmlBean;

	@Override
	public String toString() {
		return "ValidatorConfigBean [name=" + name + ", clazz=" + clazz
				+ ", field=" + field + "]";
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getClazz() {
		return clazz;
	}

	public void setClazz(String clazz) {
		this.clazz = clazz;
	}

	// public String getXmlBean() {
	// return xmlBean;
	// }
	//
	// public void setXmlBean(String xmlBean) {
	// this.xmlBean = xmlBean;
	// }

	public List<FieldConfigBean> getField() {
		return field;
	}

	public void setField(List<FieldConfigBean> field) {
		this.field = field;
	}
}
